Moved $ENV{PWD} to $pwd using system capture