Interpret ${PWD} in the shell

This works correctly, even if PWD isn't set in the environment of the
process that calls make.

Issue: dtolabs/rundeck/issues#624
Merge pull request #625 from dspinellis/development

Interpret ${PWD} in the shell