Fixed bug with current directory set with "." or "./"