Fixed error at checking/switching to sources directory