Fixed issue where determining absolute path with $1 contains whitespace