Bug fix in rails + add rails executable configuration support