Fix operator precedence in detectEnvFile()
Fix operator precedence in detectEnvFile()

The `&&` operator has a higher precedence than the `=` operator, so $dir was actually getting set to 1.

AlexMasterov/framework