[minor] Remove duplicate dependencies and cleanup of the scripts