Switched to logical path from real path for resolving from dirname