Optimized build script by using given output directory instead using copy and delete task