fixing Ambigous Redirect error caused by directories with a space