Removes file extenstion and old script