Add common function for getting properties file from cli