improve cross-application layouts handling, fixes padrino-core tests on mingw