Use correct path with getcwd() for symlinked core (3)