add work_dir attribute and use it in nexus.properties template