Added local build check before uploading