prepend base_dir when expanding code path