Fixing the slash at the input directory path