def build_dest_dir(gearman_worker, dest_dir):
    """
    Replace any wildcards in the provided directory
    """

    return_dest_dir = dest_dir.replace('{loweringID}', gearman_worker.lowering_id)
    return_dest_dir = return_dest_dir.replace('{loweringDataBaseDir}', gearman_worker.shipboard_data_warehouse_config['loweringDataBaseDir'],)
    return_dest_dir = return_dest_dir.replace('{cruiseID}', gearman_worker.cruise_id)
    return return_dest_dir