Now gets the current working directory properly, instead of script
execution directory.