Removing path option from charge command and fixing bug in path cleaning on Windows