Fix windows compatibility on subdirectories