Fix building mounted directories