Cleaning up dependencies and avoid copying unnecessary files to dist