Using the right path for directory