Fixes ls: cannot access vendor/nginx: No such file or directory in debug mode

Error prevented slug compilation if debug mode was turned on and threw the following error:

ls: cannot access vendor/nginx: No such file or directory
Fix in compile commands

* use ‘$cmd’ so we can also use/set environment variables
* use readline so we can execute multiple commands