Git checkout not in a subdirectory. Make php conversion not Moodle specific. Fix Android conversion bug