How to make the base directory for the properties files more flexible