use os.path.basename instead of split() for the deploy_war to be supported in windows