I added a couple timeouts to slow down what is actually going on. For some reason it is trying to use the directory as a command. Here is a pic.