fix setup script for non-explicitly set root-dir