Get parent directory of script even when real path contains spaces and is different than `pwd` path.