Revert "Remove old code which uses pwd"
Revert "Remove old code which uses pwd"

This reverts commit b27ad2bc68f701cd4c176abb1874f0c8f0346f8b [formerly 6ed222aea50b3aebb667285a745ec04bf470552c] [formerly 9856be6864ba460149134ed8439b540b46faee75] [formerly df303d4143fbedf98a9ce36087d143df30b8331b [formerly df303d4143fbedf98a9ce36087d143df30b8331b [formerly 7078350372d00e514f16ddc5e5c04799da6877fc]]].


Former-commit-id: 80549e93fc4a4f6da7b86e226d72932a96c583d3 [formerly 80549e93fc4a4f6da7b86e226d72932a96c583d3 [formerly 4b2be32ed5abf8f91e596501c230a34b44bd4fa2]]
Former-commit-id: 72878a62445c1fbd7e99a847ef631cb25c6d8464
Former-commit-id: 3b0f58f288e5ee20c12eac8b35c4055344e3fb1e
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine