Updated compileWithDependencies Script