Added / to path in checkFreeSpace