Adding support for releaseDir and require options - simplified the code so that adding support for other, similar type parameters is easier