get_cwd does not return the correct file path, so using realpath instead