clean path from "..", fix default directory for Android