added to use namespace separator as directory separator when generating (fixes #9)