From your problem description, it seems like you are working on MAC OS.
Anyways, you should make a static method to read this path that would execute before any action performed.
Hope this will...