Replace spaces in project name so that tag creation doesn't fail

Replaces spaces with underscores in project name for tag creation which should fix https://issues.jenkins-ci.org/browse/JENKINS-17195