Hack relative path to fix path to upload directory.