use $ENV{PWD} so that the amd paths work ok.