Fix for the issue #517

Now when we use the compiler with the amd option and a single input as argument, we are
checking to see whether the input is a file or folder. This is a fix for issue #517.