Gotta watch those variables and quotes; homedir just wasn't fitting