Fixed bug with chdir() warning

chdir() was warning about directory not existing due to escapeshellarg()