dirty fix for finding the right folder if your rails app is not the first one in the open folders list