Added config dir parameter for security rest clients