updated script so that compressor path works with cd commands.