Handling relative directory issues with CLI