Prevent a simple directory security issue