Workaround to get symlinked directory instead of real path - replaced os.getcwd() by os.getenv(PWD)