Changing the free space check - removing dependency to Powersheel