fixed view paths error when environments config is separated fixed #2512