Fix #140 (Chmod on folder throws error)