Update internal API and rename sh files to bash for clarity.