use correct dir on magento