Moved duplicate code for directory setup and pipeline naming to a function.
Cleaned up misc unused import statements.
Added maskDir in LSQ6 initializeInputFiles call.