Added quotes to router path in getCommand

This ensures that the router is properly found when the path includes
spaces.